package com.liwei.ibatisspring;

import java.util.List;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.liwei.ibatisspring.dao.AccountDAO;

public class test {

	public static void main(String[] args) {
		try {

			ClassPathXmlApplicationContext appContext = new ClassPathXmlApplicationContext(
					new String[] { "ibatis-spring.xml" });

			AccountDAO accountDAO = (AccountDAO) appContext
					.getBean("accountDAO");
			List list = accountDAO.selectAllAccounts();
			System.out.println();

		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
